<template>
    <div class="add-sales">
        <el-form-item label="库存预警">
            <el-input
                class="ls-input"
                type="number"
                v-model="value.stock_warning"
            ></el-input>
            <div class="xs muted">
                设置最低库存预警值，不填或填0表示不做库存预警
            </div>
        </el-form-item>
        <el-form-item label="虚拟销量">
            <el-input
                class="ls-input"
                type="number"
                v-model="value.virtual_sales_num"
            ></el-input>

        </el-form-item>
        <el-form-item label="虚拟浏览量">
            <el-input
                class="ls-input"
                type="number"
                v-model="value.virtual_click_num"
            ></el-input>
        </el-form-item>
        <el-form-item
            label="商品状态"
            required
        >
            <el-radio-group v-model="value.status">
                <el-radio :label="1">立即上架</el-radio>
                <el-radio :label="0">放入仓库</el-radio>
            </el-radio-group>
        </el-form-item>
    </div>
</template>

<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator'

@Component
export default class AddSales extends Vue {
    @Prop() value: any
}
</script>

<style scoped lang="scss">
</style>

